#include<stdio.h>
#include<string>
using namespace std;
class MultiNumber
{
public:
    string check(int number)
    {
        if (number<11) return "NO";
        char m[10];
        sprintf(m,"%d",number);
        int len = sizeof(m);
        int i,j;
        int times =1;
        for(i=0;i<len;i++)
        {
        	times *= m[i] - '0';
        	int times2 = 1;
        	for(j=i+1;j<len;j++)
        	{
        		times2 *= m[j] - '0';
        	}
        	if(times == times2)
        		return "YES";
        }
        return "NO";
    }
};

//number contains 0 is considerable!!
